package cn.fangline.wo.service.impl;

import cn.fangline.base.util.exception.BussinessException;
import cn.fangline.wo.mapper.OriginHouseMapper;
import cn.fangline.wo.model.OriginHouse;
import cn.fangline.wo.service.IOriginHouseService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 原始房源表 服务实现类
 * </p>
 *
 * @author 抽离
 * @since 2017-04-21
 */
@Service
public class OriginHouseServiceImpl extends ServiceImpl<OriginHouseMapper, OriginHouse> implements IOriginHouseService {

    @Autowired
    private OriginHouseMapper originHouseMapper;

    @Override
    public List<OriginHouse> findOriginHouseList(Long houseId) throws BussinessException{
        if(houseId == null){
            throw new  BussinessException("参数异常");
        }
        return originHouseMapper.selectSellPointList(houseId);
    }
}
